#pragma once

#include "Labyrinth.h"
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <vector>

class Graphic
{
private:
	sf::RenderWindow& win;
	Labyrinth& labyrinth;
	std::vector < std::vector < sf::Sprite > > sprites;
	
	// On instancie les images

	sf::Image wallup;
	sf::Image wallbot;
	sf::Image wallright;
	sf::Image wallleft;
	sf::Image wall;
	sf::Image joueur1;
	sf::Image joueur2;
	sf::Image ground;
	sf::Image block;
	sf::Image fire;
	sf::Image bomb;
	
public:
	Graphic(sf::RenderWindow&, Labyrinth&);
	~Graphic(void);
	
	sf::Image& getImage(char);
	void display();
	
	Labyrinth& getLabyrinth() const { return labyrinth; }
	void setLabyrinth(Labyrinth& val) { labyrinth = val; }
	
};
